<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <style>
            #table{
                float:left;
                width:550px;
                height:400px;
                margin-right:20px;
                border:1px solid #666666;
            }
            .page{
                width:20px;
                height:20px;
                margin-top: 5px;
                background:url(../image/leaf.png);
                cursor: pointer;
               color: white;
                padding-left:5px; 
            }
            #set_page{
                float:left;
                width:550px;
                height:30px;
                border: 1px solid #666666;
                border-top:0px;
                margin-top: 0px;
            }

            #top{
                width:100%;
                  background:url(../image/biaoti.png);
                 height:60px;
                border-bottom: 1px solid #666666;
                padding-top:5px;
                font-size:14px;
                font-family:Arial, Helvetica, sans-serif;
            }

             .buttonok{
                width:45px;
                height: 25px;
                background:url(../image/ok.png);
                float:right;
              
                border:1px outset;
                text-align: center;
                padding-top:3px;
                margin-right: 10px;
                cursor: pointer;
                font-size:14px;
                font-family:Arial, Helvetica, sans-serif;
            }
                .buttoncancel{
                width:45px;
                height: 25px;
                background:url(../image/cancel.png);
                float:right;
              
                border:1px outset;
                text-align: center;
                padding-top:3px;
                margin-right: 10px;
                cursor: pointer;
                font-size:14px;
                font-family:Arial, Helvetica, sans-serif;
            }
        </style>
        <script language="javascript">
            function submit()
            {
                var form=document.getElementById('thisform');
                form.submit();
            }     
            
            function show(page_no)
            {
                var all_page=document.getElementById('table').getElementsByTagName('table');

                for(var i=0;i<all_page.length;i++)
                    all_page[i].style.display="none";
                
                all_page[page_no].style.display="block";                
            }
        </script>
    </head>
    <body>
        <div style="float:left;">
            <div id="table">
                <span id="top"><b>监控策略设置</b></span><br>
                <span style="font-size:14px; font-family:Arial, Helvetica, sans-serif;color:#46A3FF"><b>Wole</b></span>
                <form id="thisform" action="config_Financial_Factor?enterpriseId=<s:property value='enterpriseId' />" method="post">
                    <table cellspacing="5px"style="font-size:13px;font-family:Arial, Helvetica, sans-serif;color:#666666;display:block;">
                        <s:iterator value="outValueDTOList" var="temp" status="temp1">
                            <s:if test="#temp1.index<outValueDTOList.size()/3">
                                <tr>
                                    <td><s:property value="#temp.factorName"/><input type="hidden" name="valueListDTO.factorName[<s:property value="#temp1.index" />]" value="<s:property value='#temp.factorName' />"/>
                                        低于<input type="text" size="10" name="valueListDTO.standardValue[<s:property value="#temp1.index" />]" value="<s:property value="#temp.standardValue" />"/>,
                                        变动<input type="text" size="10" name="valueListDTO.changeValue[<s:property value="#temp1.index" />]" value="<s:property value="#temp.changeValue" />"/>时通知我。</td>
                                </tr>
                            </s:if>
                        </s:iterator>
                    </table>
                    <table cellspacing="5px"style="font-size:13px;font-family:Arial, Helvetica, sans-serif;color:#666666;display:none;">
                        <s:iterator value="outValueDTOList" var="temp" status="temp1">
                            <s:if test="#temp1.index>=outValueDTOList.size()/3&&#temp1.index<(2*outValueDTOList.size())/3">
                                <tr>
                                    <td><s:property value="#temp.factorName"/><input type="hidden" name="valueListDTO.factorName[<s:property value="#temp1.index" />]" value="<s:property value='#temp.factorName' />"/>
                                        低于<input type="text" size="10" name="valueListDTO.standardValue[<s:property value="#temp1.index" />]" value="<s:property value="#temp.standardValue" />"/>,
                                        变动<input type="text" size="10" name="valueListDTO.changeValue[<s:property value="#temp1.index" />]" value="<s:property value="#temp.changeValue" />"/>时通知我。</td>
                                </tr>
                            </s:if>
                        </s:iterator>
                    </table>
                    <table cellspacing="5px"style="font-size:13px;font-family:Arial, Helvetica, sans-serif;color:#666666;display:none;">
                        <s:iterator value="outValueDTOList" var="temp" status="temp1">
                            <s:if test="#temp1.index>=(2*outValueDTOList.size())/3&&#temp1.index<outValueDTOList.size()">
                                <tr>
                                    <td><s:property value="#temp.factorName"/><input type="hidden" name="valueListDTO.factorName[<s:property value="#temp1.index" />]" value="<s:property value='#temp.factorName' />"/>
                                        低于<input type="text" size="10" name="valueListDTO.standardValue[<s:property value="#temp1.index" />]" value="<s:property value="#temp.standardValue" />"/>,
                                        变动<input type="text" size="10" name="valueListDTO.changeValue[<s:property value="#temp1.index" />]" value="<s:property value="#temp.changeValue" />"/>时通知我。</td>
                                </tr>
                            </s:if>
                        </s:iterator>
                        <tr>
                            <td>
                                <span class="buttonok"></span>
                                <span class="buttoncancel" onClick="submit();"></span>                           
                            </td>    
                        </tr>    
                    </table>                
                </form>
            </div>
            <div id="set_page">
                <span class="page" onClick="show(0)">1</span>
                <span class="page" onClick="show(1)">2</span>
                <span class="page" onClick="show(2)">3</span>
            </div>
        </div>         
    </body>
</html>
